/**
 * 文件名：ResultTask.java
 * 
 * 版本信息：
 * 日期：2013-5-13
 * Copyright 足下 Corporation 2013
 * 版权所有
 * 
 */
package com.hugedata.cdn.service.task.bean.report;

import java.util.Arrays;

/**
 * 
 * 项目名称：CDN 类名称：ResultTask 类描述： 创建人：zhaoaihua 创建时间：2013-5-13 下午4:39:28 修改备注：
 * 
 * @version
 * 
 */
public class ResultTask
{
    private String taskID;
    private int taskType;
    // v3.1原来属性
    private String monitoringTime;

    private TARresultBean[] data;
    private int fault = 0;

    public TARresultBean[] getData()
    {
        return data;
    }

    public void setData(TARresultBean[] data)
    {
        this.data = data;
    }

    public void setFault(int fault)
    {
        this.fault = fault;
    }

    public String getTaskID()
    {
        return taskID;
    }

    public void setTaskID(String taskID)
    {
        this.taskID = taskID;
    }

    public int getTaskType()
    {
        return taskType;
    }

    public void setTaskType(int taskType)
    {
        this.taskType = taskType;
    }

    public String getMonitoringTime()
    {
        return monitoringTime;
    }

    public void setMonitoringTime(String monitoringTime)
    {
        this.monitoringTime = monitoringTime;
    }

    public int getFault()
    {
        /*
         * if (data.length == 2)
         * {
         * return Integer.parseInt(data[0].getFaultFlag())
         * | Integer.parseInt(data[0].getFaultFlag());
         * }
         */
        return 0;
    }

    @Override
    public String toString()
    {
        return "ResultTask [taskID=" + taskID + ", taskType=" + taskType
                + ", monitoringTime=" + monitoringTime + ", data="
                + Arrays.toString(data) + ", fault=" + fault + "]";
    }
}
